From 618ef9cd1c2946baef6a6faf23557d24796b5f67 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 14 Mar 2007 23:14:19 +0000 Subject: [PATCH] Fix error logging when we get a 500 response. Signed-off-by: Ewan Mellor --- tools/python/xen/xm/XenAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/XenAPI.py b/tools/python/xen/xm/XenAPI.py index e557b9ccb8..ae2448eb71 100644 --- a/tools/python/xen/xm/XenAPI.py +++ b/tools/python/xen/xm/XenAPI.py @@ -155,7 +155,7 @@ class Session(xen.util.xmlrpclib2.ServerProxy): def _parse_result(result): if type(result) != dict or 'Status' not in result: - raise xmlrpclib.Fault(500, 'Missing Status in response from server' + result) + raise xmlrpclib.Fault(500, 'Missing Status in response from server: ' + str(result)) if result['Status'] == 'Success': if 'Value' in result: return result['Value'] -- 2.30.2